<?php

abstract class Controller
{
    protected $_outputVars;

    protected function _toOutput($name, $value)
    {
        $this->_outputVars[$name] = $value;
    }

    /*
    protected function _clearOutput()
    {
        $this->_outputVars = array();
    }
    */

    protected function _display($sub_dir, $templete)
    {
        $v = $this->_outputVars;
        require('/templates/' . $sub_dir . '/' . $templete . '.tmp.php');
    }

    abstract function defaultAction();
}

?>